{% load shorturl %}
<div class="twitter_share" id="twitter{{ item.id }}">
    <input type="hidden" class="hidden_twitter_message">
    <form class="twitter_form" id="twitter_form{{ item.id }}" method="POST"
          action="/item/twitter/post/{% if story %}story/{% endif %}">
        <input type="hidden" name="item" value="{{ item.id }}">
        {% if profile_user %}
            <input type="hidden" name="profile" value="{{ profile_user.id }}">
        {% endif %}
        {% csrf_token %}
        <div class="title">
            <div class="twitter_close"></div>
        </div>
        {% with item.get_twitter_message as tweet %}
            <div class=textwrapper>
                <textarea class="twitter_message" name="message">{{ tweet }}</textarea>
            </div>
            <div class="twitter_submit">
                <input type="submit" class="submit_button twitter_button" value="Tweet">
                <span class="counter">{{ tweet|length }}</span>
            </div>
        {% endwith %}
    </form>
</div>

